<template>
	<view>
		<custom-nav-sq-xcx :isBack="true" :hasFixedFlag="true" bgColor="qyGrayBg" conCol="#000" :needConBlock="true">
			<block slot="content">我的企业</block>
		</custom-nav-sq-xcx>
		<view class="qyInfo padd">
			<view class="infoTit">企业名片信息</view>
			<view class="qyInfoCard">
				<view class="cardTop hasFlex">
					<view class="qyLogo">
						<view>企&nbsp;&nbsp;业</view>
						<view>LOGO</view>
					</view>
					<view class="infoCon">
						<view class="qyName">濮阳核心二五年花传媒有限公司</view>
						<view class="userName">
							<text class="dept">网络部</text>
							<text>黄利峰</text>
						</view>
					</view>
				</view>
				<view class="cardBot" @tap="confirmLogOut">退出</view>
			</view>
		</view>
		<uni-popup ref="confirmPop">
			<view class="confirmPop hasFlex">
				<view class="warnTop">
					<view class="iconfont icon-warning"></view>
					<view class="warnTxt">请再次确认是否退出企业，退出企业后会导致企业相关资源及信息清除，请谨慎操作！</view>
				</view>
				<view class="warnBot hasFlex">
					<view class="warnItem">确认退出</view>
					<view class="warnItem cancel" @tap="cancel">取消</view>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		methods:{
			confirmLogOut(){
				this.$refs.confirmPop.open();
			},
			cancel(){
				this.$refs.confirmPop.close();
			}
		}
	}
</script>

<style lang="scss">
	page{
		background: $pss-qy-mainGray;
	}
</style>
<style lang="scss" scoped>
	.qyInfo{
		color: $qy-main2;
		.infoTit{
			height: 70rpx;
			line-height: 70rpx;
		}
		.qyInfoCard{
			background: #fff;
			padding: 30rpx 30rpx 0rpx;
			border-radius: 12rpx;
		}
		.cardTop{
			border-bottom: 1rpx solid #E5E5E5;
			padding-bottom: 30rpx;
			.qyLogo{
				width: 96rpx;
				height: 96rpx;
				background: $pss-qy-main;
				border-radius: 8rpx;
				color: #fff;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				font-size: 26rpx;
				flex-shrink: 0;
				margin-right: 15rpx;
			}
			.infoCon{
				flex: 1;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				.qyName{
					font-size: 30rpx;
					color: $qy-main2;
					font-weight: 600;
				}
				.userName{
					color: $qy-main6;
					font-size: 28rpx;
					.dept{
						margin-right: 15rpx;
					}
				}
			}
		}
		.cardBot{
			text-align: center;
			color: $qy-main2;
			font-size: 30rpx;
			height: 90rpx;
			line-height: 90rpx;
		}
	}
	.confirmPop{
		width: 520rpx;
		height: 420rpx;
		background: #fff;
		border-radius: 16rpx;
		flex-direction: column;
		justify-content: space-between;
		.warnTop{
			width: 460rpx;
			text-align: center;
			font-size: 28rpx;
			color: $qy-main2;
			margin: 50rpx auto 0;
			.icon-warning{
				font-size: 100rpx;
				color: $pss-qy-warn;
				margin-bottom: 20rpx;
			}
			.warnTxt{
				text-align: left;
			}
		}
		.warnBot{
			height: 86rpx;
			border-top: 1rpx solid #E5E5E5;
			.warnItem{
				flex: 1;
				line-height: 86rpx;
				text-align: center;
				font-size: 28rpx;
				color: $qy-main6;
				&:first-child{
					border-right:  1rpx solid #E5E5E5;
				}
				&.cancel{
					color: $pss-qy-main;
				}
			}
		}
	}
</style>